<nz-spin *ngIf="isLoading" class="modal-spin"></nz-spin>
<form nz-form *ngIf="!isLoading" [formGroup]="validateForm" (ngSubmit)="submitForm()">
  <nz-form-item>
    <nz-form-label [nzSpan]="4">说明</nz-form-label>
    <nz-form-extra style="color: orange;padding: 12px;">进入奖金发放器管理页面需验证权限，请输入操作密码以校验</nz-form-extra>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSpan]="4" nzRequired nzFor="password">操作密码</nz-form-label>
    <nz-form-control [nzSpan]="20" [nzValidateStatus]="validateForm.controls['password']">
      <input  type="password" nz-input formControlName="password" placeholder="请输入操作密码">
      <nz-form-explain *ngIf="validateForm.get('password').dirty && validateForm.get('password').hasError('required')">请输入密码</nz-form-explain>
      <nz-form-explain *ngIf="validateForm.get('password').dirty && validateForm.get('password').hasError('maxlength')">不能超过100个字</nz-form-explain>
    </nz-form-control>
  </nz-form-item>
  <div class="modal-footer">
    <button nz-button type="button" (click)="close()">取消</button>
    <button nz-button type="submit" [nzType]="'primary'" >确定</button>
  </div>
</form>
